package com.springdoor.goods.domain;

import com.springdoor.common.annotation.Excel;
import com.springdoor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品参数信息对象 sprd_goods_config
 *
 * @author llshs
 * @date 2024-05-21
 */
public class SprdGoodsConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品参数id */
    private Long gConfigId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String gNumber;

    /** 属性id */
    @Excel(name = "属性id")
    private String attrId;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String attrName;

    /** 属性值id */
    @Excel(name = "属性值id")
    private String valueId;

    /** 属性值(字符) */
    @Excel(name = "属性值名称")
    private String valueName;

    /** 属性值（数值） */
    @Excel(name = "自定义属性值")
    private String configVal;

    /** 属性单位 */
    @Excel(name = "属性单位")
    private String valueUnit;

    /** 是否为检索条件 */
    @Excel(name = "检索标志", readConverterExp = "Y=是,1=否")
    private String isSrchcond;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    /** 删除标志（0代表存在 1代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=存在,1=删除")
    private String delFlag;

    public void setgConfigId(Long gConfigId)
    {
        this.gConfigId = gConfigId;
    }

    public Long getgConfigId()
    {
        return gConfigId;
    }

    public String getgNumber() {
        return gNumber;
    }

    public void setgNumber(String gNumber) {
        this.gNumber = gNumber;
    }

    public void setAttrId(String attrId)
    {
        this.attrId = attrId;
    }

    public String getAttrId()
    {
        return attrId;
    }

    public String getValueUnit() {
        return valueUnit;
    }

    public void setValueUnit(String valueUnit) {
        this.valueUnit = valueUnit;
    }

    public void setValueId(String valueId)
    {
        this.valueId = valueId;
    }

    public String getValueId()
    {
        return valueId;
    }
    public void setConfigVal(String configVal)
    {
        this.configVal = configVal;
    }

    public String getConfigVal()
    {
        return configVal;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getValueName() {
        return valueName;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    public String getIsSrchcond() {
        return isSrchcond;
    }

    public void setIsSrchcond(String isSrchcond) {
        this.isSrchcond = isSrchcond;
    }

    public void setOrderNum(Long orderNum)
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum()
    {
        return orderNum;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("gConfigId", getgConfigId())
                .append("gNumber", getgNumber())
                .append("attrId", getAttrId())
                .append("attrName", getAttrName())
                .append("valueUnit", getValueUnit())
                .append("valueId", getValueId())
                .append("configVal", getConfigVal())
                .append("valueName", getValueName())
                .append("isSrchcond", getIsSrchcond())
                .append("orderNum", getOrderNum())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}
